<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 创建方式
        // 1.直接创建
        // let num = BigInt(234);
        let num = BigInt(1);

        console.log(num);

        // 数字后面加n
        let num1 = 123n;
        console.log(num1);

        // BigInt只能和BigInt型的在一起运算
        console.log(1n + 2n);
        // console.log(1 + 2n); //报错

        // 是简单数据类型
        console.log(typeof BigInt(12));
    </script>
    
</body>
</html>